<div class="row">
    <div class="col-xs-12">
        <div class="box">
            <div class="box-header">
                <button class="btn btn-sm btn-primary" ng-click="cancel()">关闭</button>
                <div class="box-tools">
                    <div class="input-group" style="width: 150px;">
                        <input type="text" name="table_search" class="form-control input-sm pull-right"
                               placeholder="搜索">

                        <div class="input-group-btn">
                            <button class="btn btn-sm btn-default"><i class="fa fa-search"></i></button>
                        </div>
                    </div>
                </div>
            </div>
            <!-- /.box-header -->
            <div class="box-body table-responsive no-padding">
                <table class="table table-hover">
                    <tr>
                        <th>ID</th>
                        <th>AppCode</th>
                        <th>应用名称</th>
                        <th>描述</th>
                        <th>是否开启权限</th>
                    </tr>
                    <tr ng-repeat="a in myapplist">
                        <td>{{a.app.id}}</td>
                        <td>{{a.app.code}}</td>
                        <td>{{a.app.name}}</td>
                        <td>{{a.app.description}}</td>
                        <td>
                            <span class="label label-danger" ng-show="a.flag == false" ng-click="editAppUser(a.userId,a.app.id,'ADD')">开启</span>
                            <span class="label label-danger" ng-show="a.flag == true" ng-click="editAppUser(a.userId,a.app.id,'DEL')">关闭</span>
                        </td>
                    </tr>
                </table>
            </div>
            <!-- /.box-body -->
        </div>
        <!-- /.box -->
    </div>
</div>
